package com.aat.dxfy.aaa;

public class BJMoney {

	public static void main(String[] args) {
		input(8000.0, 8000.0, 8000.0);
	}
	
	public static void input(double sqdBase, double sbBase, double gjjBase) {
		int k = 5000;
		double sbSelf = sbBase * 0.10015;
		double gjjSelf = gjjBase * 0.12;
		double shSelf = sqdBase - sbSelf - gjjSelf;
		double sheng = shSelf - k;
		double res = 0;
		if (sheng <= 3000) {
			res = sheng * 0.03;
		} else if (sheng > 3000 && sheng <= 12000) {
			res = sheng * 0.1 - 210;
		} else if (sheng > 12000 && sheng <= 25000) {
			res = sheng * 0.2 - 1410;
		} else if (sheng > 25000 && sheng <= 35000) {
			res = sheng * 0.25 - 2660;
		} else if (sheng > 35000 && sheng <= 55000) {
			res = sheng * 0.3 - 4410;
		} else if (sheng > 55000 && sheng <= 80000) {
			res = sheng * 0.35 - 7160;
		}else if (sheng > 80000) {
			res = sheng * 0.45 - 15160;
		}
		double shd = sheng - res + k;
		double all = shd + gjjSelf * 2;

		String str1 = "税前：" + sqdBase + ",税后:" + shd + ",最终：" + all;
		String str2 = "社保：" + sbSelf + ",公积金:" + gjjSelf + ",交税：" + res;
		String str3 = "年薪：" + shd * 12 + ",总额:" + all * 12;
		System.out.println(str1);
		System.out.println(str2);
		System.out.println(str3);
	}

}
